package annotation;

public class Successor extends Predecessor {

	// mark a method as a superclass method that has been overridden
	@Override
	public void doNothing() {

	}

	public void doCalculation() {

	}

	/*
	 * @deprecated don't use it later
	 */
	@Deprecated
	public void old() {

	}

	// use a deprecated method and tell the compiler not to generate a warning
	@SuppressWarnings("deprecation")
	public void useOldSuppression() {
		this.old();
	}

	public void useOldNoSuppression() {
		this.old();
	}
}
